class Dog {
    public String name;//名字
    public String color;//颜色
    
    // 狗的行为
    public void barks() {
        System.out.println(name + ": 旺旺旺~~~");
    }
    public void wag() {
        System.out.println(name + ": 摇尾巴~~~");
    }
    
    public static void main(String[] args) {
        Dog Labrador = new Dog();
        Labrador.name = "豆豆";
        Labrador.color = "黑色";
        Labrador.barks();
        Labrador.wag();
        
        Dog Husky = new Dog();
        Labrador.name = "二哈";
        Labrador.color = "黑白相间";
        Labrador.barks();
        Labrador.wag();
    }
    
}